<?php 
namespace Admin\Model;
use Think\Model;
class IndexModel extends Model{
   protected $trueTableName='admin';
   public function verify($user,$pwd){
          $data['admin_u']=$user;
          $data['admin_p']=$pwd;
          $res=$this->where($data)->count();
          //检查数量
          if($res==1){
          	return 1;
          }else{
          	return 0;
          }
   }
}

 ?>